package net.mengkang.dto;

import java.util.HashMap;
import java.util.Map;

public class Response {
    private int errorCode; // 成功时 0 ,如果大于 0 则表示则显示error_msg
    private String errorMsg;
    private Map<String,Object> data;

    public Response() {
        data = new HashMap<String,Object>();
    }

    public int getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(int errorCode) {
        this.errorCode = errorCode;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }

    public Map<String, Object> getData() {
        return data;
    }

    public void setData(Map<String, Object> data) {
        this.data = data;
    }

    public Response(int errorCode, String errorMsg) {
        this.errorCode = errorCode;
        this.errorMsg = errorMsg;
    }
}
